﻿<%@ Page Title="" Language="C#" MasterPageFile="~/administrator/backend.Master" AutoEventWireup="true" CodeBehind="excercise-view.aspx.cs" Inherits="VQWEB.administrator.english.excercises.excercise_view" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Content_backend" runat="server">
    <form id="frm_excercise_view" method="post" runat="server">
    <asp:FormView ID="frmExcerciseView" RenderOuterTable="false" runat="server">
        <ItemTemplate>
            <p>
            Title
            </p>
            <p>
            <%# Eval("excercise_title") %>
            </p>
             <p>
            Content
            </p>
            <p>
            <%# Eval("excercise_content")%>
            </p>
            <input type="hidden" name="excercise_id" value='<%# Eval("excercise_id") %>' />  
            <p>
                <input type="button" id="btnAnswer" value="Answer" />
            </p>          
        </ItemTemplate>
    </asp:FormView>
    </form>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Script_backend" runat="server">
    <script type="text/javascript">
        $("#btnAnswer").click(function () {
            var arr = $("#frm_excercise_view").serializeObject();
            alert(arr);
        });
    </script>
</asp:Content>
